package uni.stuttgart.openstreetmap;

import android.graphics.Bitmap;

public class MapTile {

	public static final int HORIZONTAL_PIXELS = 256;
	public static final int VERTICAL_PIXELS = 256;
	
	private int x;
	private int y;
	private int z;
	
	private Bitmap image;
	
	private int absolutePixelPositionX;
	private int absolutePixelPositionY;

	public MapTile(int x, int y, int z, Bitmap image) {
		this.x = x;
		this.y = y;
		this.z = z;
		this.image = image;
		this.absolutePixelPositionX = this.x*HORIZONTAL_PIXELS;
		this.absolutePixelPositionY = this.y*VERTICAL_PIXELS;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getZ() {
		return z;
	}

	public Bitmap getImage() {
		return image;
	}

	public int getAbsolutePixelPositionX() {
		return absolutePixelPositionX;
	}

	public int getAbsolutePixelPositionY() {
		return absolutePixelPositionY;
	}
}
